package design.responsibility.demo02;

/**
 * <p>
 * demo02 test
 * </P>
 *
 * @author dingwen
 * @date 2021.10.15 13:50
 */
public class ClerkTest {
    public static void main(String[] args) {
        Clerk clerk = new Clerk();
        Leader leader = new Leader();
        Manager manager = new Manager();
        clerk.setNextClerk(leader);
        leader.setNextClerk(manager);

        clerk.handler(new MoneyRequest(20000));
    }
}
